﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FlowSequencer.Model
{
    class Lines : INotifyPropertyChanged
    {
        public Lines()
        {
            ColumnsData = new ObservableCollection<Cell>();
        }
        private string header;
        public string Header 
        {
            get { return header; }
            set 
            {
                if (header == value) return;
                header = value;
                NotifyPropertyChanged("Header");
            }
        }

        private ObservableCollection<Cell> columnsData;
        public ObservableCollection<Cell> ColumnsData 
        {
            get { return columnsData; }
            set 
            {
                if (columnsData == value) return;
                columnsData = value;
                NotifyPropertyChanged("ColumnsData");
            }
        }

        private void NotifyPropertyChanged(string name)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(name));
        }
        public event PropertyChangedEventHandler PropertyChanged;
    }
}
